package com.yuezheng.modules.system.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import me.zhengjie.zabbix.Request;
import org.apache.http.client.methods.CloseableHttpResponse;

import java.util.Map;

/**
 * Created by bruce on 19/7/11.
 */
public interface ZabbixApi {
    //void init();

    //void destroy();

    String apiVersion();

    JSONObject call(Request request);

    CloseableHttpResponse graphImage(Map<String,String> prams);

    boolean login();

    boolean webLogin();

    String getAuth();

    JSONArray hostGroup_Get(Map<String,Object> filter);

    JSONArray host_Get(Map<String,Object> filter);
    Integer host_get_count(Map<String,Object> filter);

    JSONArray graph_get(Map<String,Object> filter);

    JSONArray trigger_Get(Map<String,Object> filter);

    JSONArray dashboard_HoststatGet(Map<String,Object> filter);

    JSONArray hostinterface_get(Map<String,Object> filter);
    Integer hostinterface_get_count(Map<String,Object> filter);


    JSONArray problem_get(Map<String,Object> filter);
    Integer problem_get_count(Map<String,Object> filter);

    JSONArray trend_get(Map<String,Object> filter);

    JSONArray event_get(Map<String,Object> filter);
}
